package net.caidingke.shepherd.domain.user.finder;

import io.ebean.Finder;
import net.caidingke.shepherd.domain.user.RolePermission;
import net.caidingke.shepherd.domain.user.query.QRolePermission;

/**
 * @author bowen
 */
public class RolePermissionFinder extends Finder<Long, RolePermission> {

    /**
     * Construct using the default EbeanServer.
     */
    public RolePermissionFinder() {
        super(RolePermission.class);
    }

    /**
     * Construct with a given EbeanServer.
     */
    public RolePermissionFinder(String serverName) {
        super(RolePermission.class, serverName);
    }

    /**
     * Start a new typed query.
     */
    public QRolePermission where() {
        return new QRolePermission(db());
    }

    /**
     * Start a new document store query.
     */
    public QRolePermission text() {
        return new QRolePermission(db()).text();
    }
}
